package com.ltu.timkor6.gamesite.listings.server;

import java.util.List;

import com.ltu.timkor6.gamesite.listings.client.ListingsService;
import com.ltu.timkor6.gamesite.server.DataBaseConnection;
import com.ltu.timkor6.gamesite.server.GameSiteServiceImpl;
import com.ltu.timkor6.gamesite.shared.Result;

@SuppressWarnings("serial")
public class ListingsServiceImpl extends GameSiteServiceImpl implements ListingsService
{
	public ListingsServiceImpl()
	{
	}
	
	/**
	 * First time, starting game.
	 */
	public List<Result> listings(boolean all)
	{
		DataBaseConnection db = new DataBaseConnection(this);
		if(all)
		{
			return db.getResultForAll();
		}
		else
		{
			return db.getResult();
		}
	}
}
